﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YnPlcDataServer
{
    public class MyLogger
    {
        public static Action<object> ShowLog { get; set; }
        public static void Info(string message)
        {
            if (ShowLog != null)
                ShowLog(DateTime.Now.ToString("[yyyy-MM-dd HH:mm:ss] ") + message);
        }
    }
}
